<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include file="DataLoad.asp"-->
<html>
<head>
<title><%=GuildName%> - DKP系统</title>
<script language="JavaScript" src="inc/jquery.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Generator" content="EditPlus">
<meta name="Author" content="SULei">
<meta name="Keywords" content="DKP WOW GUILD">
<meta name="Description" content="">
<link href="<%=StylePath%>/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="<%=StylePath%>/styleplus.js"></script>
<style type="text/css" media="all">

</style>

</head>

<body onload='javascript:eventselectclass()' >
<div class="header">
<!--#include file="menu.asp"-->

</div>
<div class="main">
<%
call eventsedit()
%>
</div>
<div id="footer"><!--#include file="footer.asp"--></div>

<script type=text/javascript>
function eventselectclass() {
	var sclass=document.forms["eventadd"].event_class.value
	if (sclass=="加入" || sclass=="离开")
	{
		document.forms["eventadd"].object.className="action"
		document.forms["eventadd"].object2.className="unuse"
		document.forms["eventadd"].event_dkp.className="unuse"
		document.forms["eventadd"].event_dkp2.className="unuse"
	}
	else if (sclass=="拾取")
	{
		document.forms["eventadd"].object.className="action"
		document.forms["eventadd"].object2.className="action"
		document.forms["eventadd"].event_dkp.className="action"
		document.forms["eventadd"].event_dkp2.className="action"
	}
	else if (sclass=="分解") {
		document.forms["eventadd"].object.className="unuse"
		document.forms["eventadd"].object2.className="action"
		document.forms["eventadd"].event_dkp.className="action"		
		document.forms["eventadd"].event_dkp2.className="unuse"
	}
	else if (sclass=="发现" || sclass=="首次" || sclass=="击杀") {
		document.forms["eventadd"].object.className="unuse"
		document.forms["eventadd"].object2.className="action"
		document.forms["eventadd"].event_dkp.className="action"		
		document.forms["eventadd"].event_dkp2.className="unuse"
	}
	else if (sclass=="团队事件") {
		document.forms["eventadd"].object.className="unuse"
		document.forms["eventadd"].object2.className="action"
		document.forms["eventadd"].event_dkp.className="action"
		document.forms["eventadd"].event_dkp2.className="unuse"
	}
	else if (sclass=="个人事件") {
		document.forms["eventadd"].object.className="action"
		document.forms["eventadd"].object2.className="action"
		document.forms["eventadd"].event_dkp.className="action"
		document.forms["eventadd"].event_dkp2.className="unuse"
	}	else {
		document.forms["eventadd"].object.className="unuse"
		document.forms["eventadd"].object2.className="action"
		document.forms["eventadd"].event_dkp.className="action"		
		document.forms["eventadd"].event_dkp2.className="unuse"
	}}

var currentActiveTab = "menuB";

</script>

</body>
</html>

<%
Sub eventsedit()
	sql="select * from raid_event where id="&request("id")
	rs.open sql,conn,1,1
			Response.write "<form name='eventadd' action='admin_eventadd.asp?action=edit' method='post'>"
			Response.write "<table class='reportform outframe'>"
			Response.write "<tr><th colspan='6'>编辑事件</th></tr>"
			Response.write "<tr class='coltitle'><td>时间</td><td>类型</td><td>对象/描述</td><td>分数</td><td>分数2</td><td></td></tr>"
			Response.write "<tr><td><input type='text' name='event_time' size='20' value='"&rs("event_time")&"' /></td><td>"&eventclass(rs("event_class"))&"</td> <td>"&raidmemberselect(Request("rid"),rs("event_object"))&"<input type='' class='unuse' name='object2' value='"&rs("event_object2")&"'  size='14'/></td>"
			Response.write " <td><input type='text' class='unuse' name='event_dkp' value='"&rs("event_dkp")&"' size='6'/></td><td><input type='text' class='unuse' tip='OK' name='event_dkp2' value='"&rs("event_dkp2")&"' size='6'/></td><td><input type='submit' value='修改'/><input type='hidden' name='postid' value='"&Request("id")&"' /><input type='hidden' name='rid' value='"&Request("rid")&"' /></td></tr>"
			Response.write "</table>"
			Response.write "</form>"	
	rs.close
End Sub
%>
